<?php 
//获取顶级分类pid=0
$cateModel=new \Common\Model\Cate;
$topData=$cateModel->where('pid=0')->orderBy('csort','ASC')->get();
 ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
	<head>
		<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
		<title><?php echo C('webSet.WEB_NAME')?></title>
		<!--描述和摘要-->
		<meta name="Description" content=""/>
		<meta name="Keywords" content=""/>
		<!--载入公共模板-->
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<link rel="stylesheet" type="text/css" href="./Public/home/org/bootstrap-3.3.5-dist/css/bootstrap.min.css" />
		<script src="./Public/home/js/jquery-1.11.3.min.js" type="text/javascript" charset="utf-8"></script>
		<script src="./Public/home/org/bootstrap-3.3.5-dist/js/bootstrap.min.js" type="text/javascript" charset="utf-8"></script>
		<link rel="stylesheet" type="text/css" href="./Public/home/css/index.css" />
		<link rel="stylesheet" type="text/css" href="./Public/home/css/backTop.css"/>
	</head>
	<body>
		<header>
			<div class="container">
				<div class="row">
					<div class="col-sm-12" >
						<h1 >欢迎来到<?php echo C('webSet.WEB_NAME')?></h1>
					</div>
				</div>
			</div>
		</header>
		<nav role="navigation" class="navbar navbar-default">
			<div class="container">
				<div class="row">
					<div class="col-sm-12" >
					
						<div class="navbar-header">
							
							<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#example-navbar-collapse">
							
								<span class="sr-only">切换导航</span>
								
								<span class="icon-bar"></span>
								<span class="icon-bar"></span>
								<span class="icon-bar"></span>
							</button>
						</div>
						
						
						<div class="collapse navbar-collapse" id="example-navbar-collapse">
							<ul class="_menu" >
								<li <?php if('Content'=='Index'){?>
                class="_active"
               <?php }?>><a href="index.hml">首页</a></li>
								<?php foreach ($topData as $v){?>
								<li <?php if(Q('get.cid')==$v['cid']){?>
                class="_active"
               <?php }?>><a href="c_<?php echo $v['cid']?>.html"><?php echo $v['cname']?></a></li>
								<?php }?>
							</ul>
						</div>
					</div>
				</div>
			</div>
		</nav>